package com.molichuxing.services.infrastructure.bean;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.molichuxing.framework.bean.RootBean;

public class PaymentDetailBean extends RootBean {
    /**
     *  id
     */
    private Integer id;

    /**
     * 订单号 order_code
     */
    private Long orderCode;

    /**
     * 支付单id payment_id
     */
    private Integer paymentId;

    /**
     * 金额 amount
     */
    private BigDecimal amount;

    /**
	 * 类型(1：租车费，2：保证金，3：基础里程费，4：订阅里程费，5：加购里程费，6：超里程费，7：超时费，8：质损费) type
	 */
    private Integer type;

    /**
     *  gmt_create
     */
    private LocalDateTime gmtCreate;

    /**
     *  gmt_modified
     */
    private LocalDateTime gmtModified;

    /**
     * payment_payment_detail
     */
    private static final long serialVersionUID = 1L;

    /**
     * 
     * @date 2019-10-09 13:36:30
     * @return id 
     */
    @Override
	public Integer getId() {
        return id;
    }

    /**
     * 
     * @date 2019-10-09 13:36:30
     * @param id 
     */
    @Override
	public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 订单号
     * @date 2019-10-09 13:36:30
     * @return order_code 订单号
     */
    public Long getOrderCode() {
        return orderCode;
    }

    /**
     * 订单号
     * @date 2019-10-09 13:36:30
     * @param orderCode 订单号
     */
    public void setOrderCode(Long orderCode) {
        this.orderCode = orderCode;
    }

    /**
     * 支付单id
     * @date 2019-10-09 13:36:30
     * @return payment_id 支付单id
     */
    public Integer getPaymentId() {
        return paymentId;
    }

    /**
     * 支付单id
     * @date 2019-10-09 13:36:30
     * @param paymentId 支付单id
     */
    public void setPaymentId(Integer paymentId) {
        this.paymentId = paymentId;
    }

    /**
     * 金额
     * @date 2019-10-09 13:36:30
     * @return amount 金额
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * 金额
     * @date 2019-10-09 13:36:30
     * @param amount 金额
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * 类型(1：租车费，2：保证金，3：加购里程费，4：超里程费，5：超时费，6：质损费)
     * @date 2019-10-09 13:36:30
     * @return type 类型(1：租车费，2：保证金，3：加购里程费，4：超里程费，5：超时费，6：质损费)
     */
    public Integer getType() {
        return type;
    }

    /**
     * 类型(1：租车费，2：保证金，3：加购里程费，4：超里程费，5：超时费，6：质损费)
     * @date 2019-10-09 13:36:30
     * @param type 类型(1：租车费，2：保证金，3：加购里程费，4：超里程费，5：超时费，6：质损费)
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 
     * @date 2019-10-09 13:36:30
     * @return gmt_create 
     */
    @Override
	public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    /**
     * 
     * @date 2019-10-09 13:36:30
     * @param gmtCreate 
     */
    @Override
	public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * 
     * @date 2019-10-09 13:36:30
     * @return gmt_modified 
     */
    @Override
	public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    /**
     * 
     * @date 2019-10-09 13:36:30
     * @param gmtModified 
     */
    @Override
	public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PaymentDetailBean other = (PaymentDetailBean) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderCode() == null ? other.getOrderCode() == null : this.getOrderCode().equals(other.getOrderCode()))
            && (this.getPaymentId() == null ? other.getPaymentId() == null : this.getPaymentId().equals(other.getPaymentId()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()));
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderCode() == null) ? 0 : getOrderCode().hashCode());
        result = prime * result + ((getPaymentId() == null) ? 0 : getPaymentId().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderCode=").append(orderCode);
        sb.append(", paymentId=").append(paymentId);
        sb.append(", amount=").append(amount);
        sb.append(", type=").append(type);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}